package com.th.supcom.pds.phamapply.client.widget.checkdispense;

import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
import com.th.supcom.pds.phamapply.client.widget.phamdispense.PhamDispenseFields;

/**
 * 核对发药时通过扫描二维码查询摆药明细
 * 
 * @author 杨冲
 */
public class QueryDispenseByBarCodePanel extends FormPanel
{
    private PhamDispenseFields m_fields;

    public void setFields (PhamDispenseFields fields)
    {

        m_fields = fields;
    }

    /**
     * 构造函数
     */
    public QueryDispenseByBarCodePanel ()
    {
    }

    /**
     * 初始化UI
     */
    public void initUI ()
    {
        setHeaderVisible (false);
        FormLayout formLayout = new FormLayout ();
        formLayout.setLabelWidth (60);
        formLayout.setDefaultWidth (100);
        setLayout (formLayout);

        add (m_fields.getBarCode ());
    }

}
